apache加入chkconfig

        第一步:

1
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd

        第二步:

1
vim /etc/init.d/httpd

        在第一行#!/bin/sh下增加两行文字

1
2
# chkconfig: 35 70 30
# description: Apache

        保存退出

        第三步:

1
chkconfig --level 35 httpd on